package il.ac.technion.wiki.api;

public abstract class WikiEngineApi<T> {

	private WikiStorageApi<T> m_storage;
	
	public WikiEngineApi(WikiStorageApi<T> storage) {
		m_storage = storage;
	}
	
	public boolean addPage(WikiPageApi<T> page) {		
		return m_storage.addPage(page);
	}
	
	public WikiPageApi<T> search(String searchTerm) {
		return null;
	}
	
	public WikiPageApi<T> getPage(String name) {
		return m_storage.getPageByName(name);
	}
}
